<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('coupon/index')}">优惠券列表</a></li>
			<li ><a href="{:url('coupon/set')}">发送优惠券</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('coupon/index')}">
			会员姓名:
			<input type="text" class="form-control" name="nick_name" style="width: 120px;" value="{:input('request.nick_name/s','')}" placeholder="请输入会员姓名">
			会员ID:
			<input type="text" class="form-control" name="id" style="width: 120px;" value="{:input('request.id/s','')}" placeholder="请输入会员ID">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('coupon/index')}">清空</a>
		</form>
		<form  method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th align="left">会员ID</th>
						<th align="left">会员姓名</th>
						<th align="left">优惠券</th>
						<th>使用时间</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.voucher_memberid}</td>
						<td>{$vo.nick_name}</td>
						<td>{$vo.voucher}</td>
						<td>从{$vo.u_time|date="Y-m-d",###}到{$vo.e_time|date="Y-m-d",###}截止</td>
						<td>{$vo.voucher_name}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>